#include <unistd.h>
#include "Shm.hpp"
#include "NamedPipe.hpp"

int main()
{
    Shm shm(PATHNAME, PROJ_ID, SHMSIZE, shmCreater);
    shm.Zero();
    char* add = (char*)shm.Add();
    
    namedPipe fifo(creater);
    fifo.OpenPipeForRead();
    std::string message;

    while (fifo.ReadForFifo(&message))
    {
        std::cout << add << std::endl;
    }
    return 0;
}